package com.pentakill.mo.auth.role.dao.impl;

import java.util.Set;

import org.hibernate.criterion.DetachedCriteria;

import com.pentakill.mo.auth.role.dao.dao.RoleDao;
import com.pentakill.mo.auth.role.vo.RoleModel;
import com.pentakill.mo.util.base.BaseImpl;
import com.pentakill.mo.util.base.BaseQueryModel;


public class RoleImpl extends BaseImpl<RoleModel> implements RoleDao{

	@Override
	protected void doQbc(DetachedCriteria criteria, BaseQueryModel qm) {
		
	}

	public Set<RoleModel> getName(String role) {
		String hql = "from RoleModel where name = ?";
		return (Set<RoleModel>) this.getHibernateTemplate().find(hql,role);
	}
}
